package com.csun.dsms.model.entity;

import lombok.Data;

/**
 * @author chisj chisj@foxmail.com
 * @version 1.0.0
 * @date 2021-08-31 13:22
 * @description: TODO
 */
@Data
public class TokenModel {

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 随机生成的uuid
     */
    private String token;

    /**
     * 构造函数
     *
     * @param userId    the user id
     * @param token     the token
     */
    public TokenModel(Long userId, String token){
        this.userId = userId;
        this.token = token;
    }
}
